package edu.xcdq;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

          Scanner scanner =  new  Scanner(System.in);
          for (int j = 0 ;j <3;j++){
        System.out.println("第"+(j+1)+"个班的成绩：");
          int sum = 0 ;
           int count=0;
          for (int i = 0 ; i <4;i++){
              System.out.println("第"+(i+1)+"个学生的成绩：");
              int score =scanner.nextInt();
              sum+=score;//sum+sum=score
              if (score<85){
                  continue;
              }
              count++;
        }
          System.out.println("第"+(j+1)+"个班的85分以上的成绩有为："+sum/4);
	  System.out.println("第"+(j+1)+"平均成绩为："+sum/4);
          }
    }
}
